﻿using System.Windows;
using System.Windows.Controls;
using Microsoft.Windows.Controls;

namespace Agnes.TaskManager
{
    /// <summary>
    /// TaskInfoEditView.xaml 的交互逻辑
    /// </summary>
    public partial class TaskInfoEditView : UserControl
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public TaskInfoEditView()
        {
            InitializeComponent();
        }

        private void IntegerUpDown_LostFocus(object sender, RoutedEventArgs e)
        {
            IntegerUpDown ctrl = sender as IntegerUpDown;
            if (ctrl.Text == "")
            {
                ctrl.Text = "1";
            }
        }
    }
}
